package cn.itsource.org.mapper;

import cn.itsource.basic.mapper.BaseMapper;
import cn.itsource.org.domain.Department;
import cn.itsource.org.query.DepartmentQuery;

import java.util.List;

public interface DepartmentMapper extends BaseMapper<Department> {

    /* 1、第一部分  ：  公共的方法   可以抽取   注释掉  因为已经从BaseMapper继承过来了*/

   /* int add(Department department);
    int update(Department department);
    int delete(Long id);
    Department queryById(Long id);
    List<Department> queryAll();

    int batchRemove(List<Long> ids);*/

    //条件搜索
    /*List<Department> queryCondition(DepartmentQuery query);*/

    /* 2、特有的方法 */

    //通过parentId查询
    List<Department> queryByParentId(Long id);

}
